<template>
  <div class="home">
    <ul>
      <li v-for="item in list" :key="item.id">
        <p>{{item.title}}</p>
        <img :src="item.img" alt="">
      </li>
    </ul>
  </div>
</template>

<script>
  import { getHomeList } from '@/api/home'

  export default {
    name: 'Home',
    data() {
      return {
        list: []
      }
    },
    async created() {
      const result = await getHomeList()
      console.log(result.master.date)
      this.list = result.master.date
    }
    
  }
</script>

<style lang="less" scoped>
  
</style>
